import types

from apps.HttpTestcase.core import comparators


def load_validators():
    """
    加载所有已有校验器
    """
    dict = {}
    for name, item in vars(comparators).items():
        if isinstance(item, types.FunctionType):
            dict[name] = item
    return dict
